package com.yy.ant.sys.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyingying
 * @since 2020-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_log")
public class Log implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long userid;

    private String name;

    private String ip;

    /**
     * 请求地址
     */
    private String address;

    /**
     * 请求方法名
     */
    private String methodname;

    /**
     * 请求方式
     */
    private String mode;

    /**
     * 请求类方法
     */
    private String classmethod;

    /**
     * 请求传参
     */
    private String parameter;

    /**
     * 浏览器
     */
    private String os;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;

    private String osversion;

}
